package com.xman.vo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * demo vo
 */
public class Demo {
    @NotBlank(message = "姓名不能为空")
    @Size(max = 10, message = "长度不能超过10")
    private String name;
    private String job;
    private Integer age;
    private Double salary;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }
}
